package com.zcxy.fast.vo;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.zcxy.fast.anotation.Dict;
import com.zcxy.fast.entity.SysAttachment;
import com.zcxy.fast.handler.DictSerializer;
import com.zcxy.fast.mybatisExtend.anotation.JoinColumn;
import com.zcxy.fast.mybatisExtend.anotation.OneToMany;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.List;

/**
 * 单表代码生成组件以及校验测试Vo对象
 *
 * @author zcc
 * @email 860474958@qq.com
 * @date 2021-01-07 11:18:42
 */
@Data
@ApiModel(value = "SysTestVo", description = "单表代码生成组件以及校验测试Vo")
public class SysTestVo {


    @ApiModelProperty(value = " 文本组件", required = false)
    private String tinput;


    @ApiModelProperty(value = " 数字", required = false)
    private BigDecimal number;


    @ApiModelProperty(value = " 日期组件", required = false)
    private String tdate;


    @ApiModelProperty(value = " 下拉组件测试", required = false)
    @Dict("unit")
    @JsonSerialize(using = DictSerializer.class)
    private String tselect;


    @ApiModelProperty(value = " 树组件", required = false)
    private String tree;


    @ApiModelProperty(value = " 邮箱", required = false)
    private String email;


    @ApiModelProperty(value = " 手机号", required = false)
    private String phone;


    @ApiModelProperty(value = " 文本域组件", required = false)
    private String textarea;


    @ApiModelProperty(value = " 主键", required = false)
    private String id;

    @OneToMany
    @JoinColumn(name = "textarea",referencedColumnName = "file_uuid")
    private List<SysAttachment> textareaAttachs;

}
